package com.example.controller;


import com.example.entity.UserLevelEntity;
import com.example.service.UserLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
//数据可视化控制页面

@RestController
@RequestMapping("userlevel")
public class UserLevelController {
    @Autowired
    private UserLevelService userlevelService;

    @RequestMapping("/list")
    public List<UserLevelEntity> list(){
        return userlevelService.findAll();
    }

}